import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login';
import home from '../components/home';
import Shuju from '../components/shuju';
import Shi from '../components/shi';
import Putong from '../components/putong';
import Jinrong from '../components/Jinrong';
import Zichan from '../components/Zichan';
import Puliu from '../components/Puliu';
import Jinliu from '../components/Jinliu';
import Employee from '../components/Employee';
import CarTrans from '../components/CarTrans';
import carAssets from '../components/carAssets';


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      hidden: true
    }, {
      path: '/home',
      name: '主页',
      component: home,
      hidden: true,
      meta: {
        requireAuth: true,
        keepAlive: false
      },
      children: [
        {
          path: '/shuju',
          name: '数据字典页面',
          component: Shuju
        }, {
          path: '/putong',
          name: '普通资产页面',
          component: Putong,
          hidden: true,
        },{
          path: '/jinrong',
          name: '金融资产页面',
          component: Jinrong,
          hidden: true,
        },{
          path: '/puliu',
          name: '普通资产流转',
          component: Puliu,
          hidden: true,
        },{
          path: '/jinliu',
          name: '金融资产流转',
          component: Jinliu,
          hidden: true,
        },{
          path: '/Employee',
          name: '公司职员管理',
          component: Employee,
          hidden: true,
        },{
          path: '/carAssets',
          name: '车辆资产页面',
          component: carAssets,
          hidden: true,
        },{
          path: '/CarTrans',
          name: '车辆资产流转',
          component: CarTrans,
          hidden: true,
        }, {
          path: '/zichan',
          name: '资产分类管理',
          component: Zichan,
          hidden: true,
        }
      ]
    }
  ]
})
